#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @File    : process.process.py
# @Note    : vissim 运行进程检测

import psutil


def detect_vissim():
    pids = psutil.pids()
    for pid in pids:
        p = psutil.Process(pid)
        process_name = p.name()
        if "vissim" in process_name:
            return True
    else:
        return False
